package com.common.account.service;


import lombok.AllArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 登录配置中心
 *
 * @author wangguochao
 */
@Service
@AllArgsConstructor
public class CustomUserDetailsService {
    private final PawVerifyService pawVerifyService;


    /**
     * 验证码登录
     */
    public UserDetails loadUserByPawAndVerify(Map<String, String> param) {
        return pawVerifyService.loadUserByPawAndVerify(param);
    }


}
